package com.ns.sbs.oauth.rent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ns.sbs.oauth.rent.entry.RentServerEntry;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 数据层接口
 *
 * @author liaowei
 */
@Mapper
public interface RentServerMapper extends BaseMapper<RentServerEntry> {

    /**
     * 根据租户id删除
     *
     * @param id 租户id
     */
    void delByRid(Long id);

    /**
     * 根据租户查询服务
     *
     * @param id 租户id
     * @return List
     */
    List<Long> getByRid(Long id);
}
